/**
 * 
 */
package group.anglers.om.core.custom.sql.utils;

import group.anglers.om.core.custom.sql.CustomSQLArchived;
import group.anglers.om.core.exceptions.CustomSQLException;
import group.anglers.om.core.exceptions.OmException;

/**
 * @author an.pham
 *
 */
public class CustomSQLUtil {
	/**
	 * 
	 * @param finderName
	 * @return
	 * @throws OmException 
	 */
	public static String get(String id) throws OmException {
		String sql = CustomSQLArchived.getInstance().getSql(id);
		
		if(sql == null){
			throw new CustomSQLException("Can not found id \"" + id + "\" !!!");
		}
		
		return sql;
	}
}
